package org.jeecg.modules.demo.ch.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.ch.entity.ChDailyRecordDetails;
import org.jeecg.modules.demo.ch.mapper.ChDailyRecordDetailsMapper;
import org.jeecg.modules.demo.ch.service.IChDailyRecordDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 每日记录明细表
 * @Author: jeecg-boot
 * @Date:   2022-11-29
 * @Version: V1.0
 */
@Service
public class ChDailyRecordDetailsServiceImpl extends ServiceImpl<ChDailyRecordDetailsMapper, ChDailyRecordDetails> implements IChDailyRecordDetailsService {

	@Autowired
	private ChDailyRecordDetailsMapper chDailyRecordDetailsMapper;

	@Override
	public List<ChDailyRecordDetails> selectByMainId(String mainId) {
		return chDailyRecordDetailsMapper.selectByMainId(mainId);
	}

	@Override
	public List<ChDailyRecordDetails> getThisWeekAllItemByName(String realName,String beiginTime,String endTime) {
		return chDailyRecordDetailsMapper.getThisWeekAllItemByName(realName,beiginTime,endTime);
	}
}
